package com.myapp.config;

/**
 * @author thc
 */
public enum GenderEnum implements IEnum<Integer> {
    MALE(1, "男"),
    FEMALE(0, "女"),
    OTHER(9, "其它"),
    ;

    private final Integer value;
    private final String description;

    GenderEnum(Integer value, String description) {
        this.value = value;
        this.description = description;
    }

    public String getDescription() {
        return description;
    }

    @Override
    public Integer getValue() {
        return value;
    }
}
